package com.paic.custserv.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.paic.custserv.domain.CussFaq;
import com.paic.custserv.mapper.CussFaqMapper;
import com.paic.custserv.service.ICussFaqService;

@Service("cussFaqService")
public class CussFaqServiceImpl implements ICussFaqService {
	
	@Autowired
	private CussFaqMapper cussFaqMapper;

	@Override
	public void save(CussFaq model) {
		cussFaqMapper.insertSelective(model);
	}

	@Override
	public void update(CussFaq model) {
		cussFaqMapper.updateByPrimaryKeySelective(model);
	}

	@Override
	public List<CussFaq> selectList(CussFaq model) {
		return cussFaqMapper.selectList(model);
	}

	
	public List<CussFaq> getFaqByLevels(String levels) throws Exception{
		return cussFaqMapper.getFaqByLevels(levels);
	}

}
